package com.wanmait.baohan.pojo;

import java.io.Serializable;

public class ProvincesCity implements Serializable {
    /**
	* 代码
	*/
    private Long code;

    /**
	* 父级代码
	*/
    private Long parentcode;

    /**
	* 名称
	*/
    private String name;

    /**
	* 1.国，2.省市，3.市，4.区县，5.街道，6.村镇
	*/
    private Byte level;

    private static final long serialVersionUID = 1L;

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public Long getParentcode() {
        return parentcode;
    }

    public void setParentcode(Long parentcode) {
        this.parentcode = parentcode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", code=").append(code);
        sb.append(", parentcode=").append(parentcode);
        sb.append(", name=").append(name);
        sb.append(", level=").append(level);
        sb.append("]");
        return sb.toString();
    }
}